package com.sun.androidexerciseproject.function.livedata.viewmodel;

import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;

public class NameViewModel extends ViewModel {
    private MutableLiveData<String> currentName;

    public MutableLiveData<String> getCurrentName() {
        if (null == currentName) {
            currentName = new MutableLiveData<>();
        }
        return currentName;
    }
}
